while 1:
    num = input("请输入需要判断的分数（0-100）:")
    if num.isdigit():
        num = int(num)
        if 85 <= num <= 100:
            print("成绩：优秀")
            break
        elif 60 <= num < 85:
            print("成绩：良好")
            break
        elif not 0 <= num <= 100:
            print("范围为0-100！请输入正确的分数！")
        else:
            print("成绩：不及格")
            break
    else:
        print("范围为0-100！请输入正确的分数！")
